#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include"cell_bookmgr.h"
#include"cellusermgr.h"
#include"cell_record.h"
#include "dlg_login.h"
QT_BEGIN_NAMESPACE
namespace Ui {
class MainWindow;
}
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();
     void initPage();
    void dealMenu();

 public slots:
     void onLoginSuccesssful(const QString& username);

private:
    Ui::MainWindow *ui;
    Dlg_login m_login;
    CellUserMgr *m_userPage;
    Cell_Bookmgr *m_BookPage;
    Cell_record *m_recordPage;
};
#endif // MAINWINDOW_H
